package com.uikoo9.manage.y.web;

import com.one.shoko.inter.EmpInter;
import com.uikoo9.manage.y.util.StringUtil;
import com.uikoo9.util.jfinal.ucenter.model.UcenterUserModel;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: lb.kong
 * Date: 2016/6/12
 * Time: 16:12
 * To change this template use File | Settings | File Templates.
 */
public class OneFlowEmpImpl implements EmpInter {
    @Override
    public void saveEmp() {

    }

    /**
     * 登录名获取对象
     * @param uid
     * @return
     */
    public Map getEmp(String uid) {
        Map _map = new HashMap();
        UcenterUserModel user = UcenterUserModel.dao.findFirst("select * from t_ucenter_user where ucenter_user_name=?", uid);
        _map.put("name",user.getStr("ucenter_user_name"));
        _map.put("uid", StringUtil.valueOf( user.getInt("id")));
        return _map;
    }

    @Override
    public Map getInputEmp() {
        return null;
    }
}
